import http from './interface'
// 默认入住人获取
export const _defaultAddress = (data) => {
    return http.request({
        url: 'umsMemberAddress/list',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
// 所有地址获取
export const _allUser = (data) => {
    return http.request({
        url: 'umsMemberAddress/list',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};

// 添加地址
export const _addUser = (data) => {
    return http.request({
        url: 'umsMemberAddress/create',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
// 编辑地址
export const _editUser = (data) => {
    return http.request({
        url: 'umsMemberAddress/update',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
// 删除地址
export const _delUser = (data) => {
    return http.request({
        url: 'umsMemberAddress/delete/'+data,
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
// 设为默认地址
export const _setDefaultUser = (data) => {
    return http.request({
        url: 'umsMemberAddress/setDefaultAddress',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
// // 设为默认地址
// export const _setDefaultAddress = (data) => {
//     return http.request({
//         url: 'address/address-set-default',
//         method: 'GET',
//         data,
//         // handle:true
//     })
// };

// 默认全部导出  import api from '@/common/vmeitime-http/'
// export default {
//     _defaultAddress,
//     _allAddress,
//     _addAddress
// }